package com.sinbader.xiaole.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("product_warning_message")
@ApiModel(value="ProductWarningMessage对象", description="商品预警消息表")
public class ProductWarningMessage implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户类型 (supplier  shop)")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "厂家或者门店id")
    @TableField("org_id")
    private Long orgId;

    @ApiModelProperty(value = "厂家或门店名称")
    @TableField("org_name")
    private String orgName;

    @ApiModelProperty(value = "商品id")
    @TableField("product_id")
    private Long productId;

    @ApiModelProperty(value = "商品名称")
    @TableField("product_name")
    private String productName;

    @ApiModelProperty(value = "计件单位")
    @TableField("count_type")
    private String countType;

    @ApiModelProperty(value = "最低预警值")
    @TableField("less_warning_value")
    private Integer lessWarningValue;

    @ApiModelProperty(value = "发货数量")
    @TableField("send_amount")
    private Integer sendAmount;

    @ApiModelProperty(value = "仓库可用库存")
    @TableField("warehouse_usable_count")
    private Integer warehouseUsableCount;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人id")
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "更新人id")
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    @ApiModelProperty(value = "0：未处理，1：已发货")
    @TableField("status")
    private Integer status;


}
